import request from '@/utils/request'

export default {
  //生成订单
  generateOrder(courseId) {
    return request({
      url: `/eduorder/order/generateOrder/${courseId}`,
      method: 'post'
    })
  },

  //获取订单信息
  getOrderInfo(orderNo) {
    return request({
      url: `/eduorder/order/getOrderInfo/${orderNo}`,
      method: 'get'
    })
  },

  //生成二维码
  createNative(orderNo){
    return request({
      url: `/eduorder/paylog/createNative/${orderNo}`,
      method: 'get'
    })
  },

  //更新支付状态
  updatePayStatus(orderNo){
    return request({
      url: `/eduorder/paylog/queryPayStaues/${orderNo}`,
      method: 'get'
    })
  }

}
